<div  id="backward" style="cursor:pointer;color:#EAF5F7;background-color:#4297D7;margin-left:300px;width:990px;width:990px;padding:3px;border-radius:3px;border:1px solid #EEEEEE">
    <span id="buttonBack"  style="padding:0" >Назад</span>
    <span id="title" style="padding:0 10px;font-weight:bold;font-size:10px;cursor:default;color:#555555">Комментарии к статье: <strong style="color:#FFFFFF"><?=$this->title;?></strong></span>
</div>
<div id="comment-container" class="ui-widget" style="float:left;" data-artid="<?=$this->artid;?>">

    <table id="comment-container">
        <thead>
            <tr>
                <th class="ui-widget-header">Автор</th>
                <th class="ui-widget-header">Комментарий</th>
            </tr>
        </thead>
        <tbody>
        <?php foreach($this->comments as $c):?>
                <tr id="<?=$c['id']?>" class="ui-widget-content" style="width:300px">
                    <td id="head_<?=$c['id']?>" class="ui-widget-content " style="vertical-align:top;width:auto">
                        <img src="<?=$c['avatar']==true ? $c['avatar'] : 'images/avatars/noavatar92.png'?>" style="vertical-align:middle; padding:5px;height:50px">
                        <br/><span id="name"><?=$c['name']?></span> <br/>
                        <img src="/images/email.png" width="16" style="vertical-align:middle; padding-right:0">
                        <a href="mailto:<?=$c['email']?>" title="Отправить письмо" style="color:#2441F5;padding-left:0;"><?=$c['email']?></a>
                        <br/><span id="created_dt">Дата отправки:<span><?=$c['created_dt']?></span></span><br/>
                        <button id="editBut_<?=$c['id']?>" class="editbutton" title="Редактировать">Редактировать</button>
                        <button id="button-visibility" title="<?=$c['visibility']=='no' ? 'В черновике' : 'Опубликован' ?>"><?=$c['visibility']=='no' ? 'В черновике' : 'Опубликован' ?></button>
                        <button id="delbutton" title="Удалить">Удалить</button>
                    </td>

                    <td id="comment_<?=$c['id']?>" class="ui-widget-content" style="vertical-align:top;font-size:10px;"><p id="tdcomment" style="font-size:10px;"><?=$c['blog_comment']?></p></td>
                </tr>

<?php endforeach;?>
        </tbody>
    </table>

</div>

